package com.cy.detectsys.controller.azure;


import com.cy.detectsys.entity.vo.PopVo;
import com.cy.detectsys.service.NetPopService;
import com.cy.detectsys.util.BaseResponseInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.*;

import jakarta.annotation.Resource;

/**
 * @author asus
 * @version 1.0
 * @description: TODO
 * @date 2024/6/1 15:15
 */
@RestController
@RequestMapping(value = "/popController")

public class PopController {

    @Resource
    private NetPopService netPopService;

    /**
     * @description: TODO
     * @author pop列表
     * @date 2024/5/30 19:52
     * @version 1.0
     */

    @PostMapping("/popList")
    private BaseResponseInfo popList(@RequestBody(required = false) PopVo PopVo) {
        return netPopService.popList(PopVo);
    }

    @GetMapping("/getPopList")
    private BaseResponseInfo getPopList() {
        return netPopService.getPopList();
    }


    @PostMapping("/popJsonList")
    private BaseResponseInfo popJsonList() {
        return netPopService.popJsonList();
    }

    @PostMapping("/popById")
    private BaseResponseInfo popById(@RequestBody PopVo popVo) {

        return netPopService.popById(popVo);
    }


   /**
   * @description: TODO
   * @author pop设施name和内置类型下拉框
   * @date 2024/6/7 17:28
   * @version 1.0
   */
    @PostMapping("/popBox")
    private BaseResponseInfo popBox() {

        return netPopService.popBox();
    }




}
